/*
  ODAZone.h - 
*/
#ifndef ODAZone_h
#define ODAZone_h

#include "WProgram.h"
#include "ODASensor.h"
#include "ODALedPanel.h"

const uint8_t MAX_SENSORS_PER_ZONE = 15;

class Zone {
  public:
    Zone();
    void init(uint8_t zone);
    void addSensor(uint8_t pin, uint8_t place);
    boolean isAlarm(LedPanel *lp);
    boolean enable(LedPanel *lp);
    void disable();
    boolean isEnabled();
  private:
    uint8_t _zone;
    Sensor _sensors[MAX_SENSORS_PER_ZONE];
    uint16_t _sensorsAdded;
    boolean _enabled;
    void reset();
};

#endif